import request from '@/utils/request'
// 获取列表
export function getTruckList(params) { //获取冷藏车列表接口（分页）
  return request({
    url: '/truck/list',
    method: 'get',
    params
  })
}

export function getTruckData(params) { //根据Id获取冷藏车数据接口
  return request({
    url: '/truck',
    method: 'get',
    params
  })
}

export function createTruck(params) {  //新增冷藏车接口
  return request({
    url: '/truck/insert',
    method: 'post',
    data: params
  })
}
export function updateTruck(params) {  //更改冷藏车接口
  return request({
    url: '/truck/update',
    method: 'post',
    data: params
  })
}

export function deleteTruck(params) {  //  根据Id删除冷藏车数据接口
  return request({
    url: '/truck/delete',
    method: 'post',
    params
  })
}

export function deleteTruckPic(params) {  //  删除冷藏车图片接口
  return request({
    url: '/truck/pic/delete',
    method: 'post',
    params
  })
}


